//
//  comSendViewCell.swift
//  NewLndd
//
//  Created by 邵禹曦 on 2020/1/7.
//  Copyright © 2020 辽宁当代. All rights reserved.
//

import UIKit
// MARK: - 商品订购
class comSendViewCell: UITableViewCell {

    @IBOutlet weak var OFF: UILabel!

     @IBOutlet weak var PP: UILabel!
     
     @IBOutlet weak var AP: UILabel!
     
     @IBOutlet weak var TF: UILabel!
     
     @IBOutlet weak var PF: UILabel!
     
     @IBOutlet weak var AF: UILabel!
     
     @IBOutlet weak var TPMB: UILabel!
     
     @IBOutlet weak var DGDJ: UILabel!
     
     @IBOutlet weak var BHDJ: UILabel!
     
     @IBOutlet weak var DRMC: UILabel!
     
    @IBOutlet weak var dingou: UIButton!
    
    
    // MARK: - 自定义属性
    var ViewModel : comSend? {
        
        // 属性监听器
        didSet {
            
            // 1. nil值校验
            guard let ViewModel = ViewModel else {
                return
            }
            PP.text = ViewModel.COI
            AP.text = ViewModel.CON
            OFF.text = ViewModel.IPI
            TF.text = ViewModel.IP
            PF.text = ViewModel.IQ
            AF.text = ViewModel.MAPQ
            TPMB.text = ViewModel.MIPQ
            DGDJ.text = ViewModel.MIPCQ
            BHDJ.text = ViewModel.ISD
            DRMC.text = ViewModel.IED
            
        }
    }
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

}
